﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="SharingCenter.Web.Mod.Groups.Events.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    活动 - <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <div class="navcont">
        <myuc:GroupHeader runat="server" GroupIdQueryStringField="id" />
        <myuc:GenericTabs ID="LinkListTabs2" runat="server" Section="GroupPage" SelectedItem="event"
            AddPageQueryString="true" />
             <div class="thbutton">
        <%if (member != null)
          { %>
       
            <div class="nss ns-add">
            </div>
            <a href="Event.aspx?id=<%=Request.QueryString["id"] %>" class="iconlabel">发起圈内活动</a>
        
        <%}
          else
          { %>
          
          <span class="nss ns-exclaim"></span>
          <span class="iconlabel1">
          只有圈子成员才能发起活动。</span>
        <%} %>
        </div>
    </div>
    <asp:ListView ID="lvFutureEvents" runat="server">
        <LayoutTemplate>
            <div runat="server" id="itemPlaceholder">
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="ctn1">
                <div class="bdr-all">
                    <h3 class="nom w6 ctn3">
                        <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("StartDate", "{0:yyyy年M月d日}") %>'></asp:Literal></h3>
                    <div class="ctn2">
                        <div class="fc">
                            <div class="left">
                                <asp:HyperLink CssClass="sz-m" ID="HyperLink1" runat="server" Text='<%#Eval("Title") %>'
                                    NavigateUrl='<%#Eval("EventId", "~/Mod/Events/?id={0}&gid=")+groupId %>'></asp:HyperLink>
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("Category", "[{0}]") %>' CssClass="litetext"></asp:Label>
                                <div class="ctn-p-t">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="litetext">
                                                地点:
                                            </td>
                                            <td class="ctn-p-l">
                                                <asp:Label ID="Label2" runat="server" Text='<%#Eval("Place") %>'></asp:Label>
                                                <asp:Label ID="Label3" runat="server" Text='<%#Eval("Venue") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="litetext">
                                                时间:
                                            </td>
                                            <td class="ctn-p-l">
                                                <span>从</span>
                                                <asp:Label ID="Label4" runat="server" Text='<%#Eval("StartDate", "{0:yyyy年M月d日 HH:mm}") %>'></asp:Label>
                                                <span>到</span>
                                                <asp:Label ID="Label5" runat="server" Text='<%#Eval("EndDate", "{0:yyyy年M月d日 HH:mm}") %>'></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="litetext">
                                                报名:
                                            </td>
                                            <td class="ctn-p-l">
                                                <asp:Label ID="Label6" runat="server" Text='<%#Eval("TotalParticipants") %>'></asp:Label>
                                                /
                                                <asp:Label ID="Label7" runat="server" Text='<%#(int)Eval("MaxParticipants")>0?Eval("MaxParticipants"):"无限制"%>'></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    
                </div>
            </div>
        </ItemTemplate>
        <EmptyDataTemplate>
            <myuc:MessageBox runat="server" MessageType="Generic" Text="没有近期要举行的活动。" />
        </EmptyDataTemplate>
    </asp:ListView>
</asp:Content>
